<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 
  'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>

<head>    
<link rel="stylesheet" type="text/css" href='<?php echo asset_url()."css/bootstrap.css"; ?>'></link>
<link rel="stylesheet" type="text/css" href='<?php echo asset_url()."css/bootstrap-theme.css"; ?>'></link>
<link rel="shortcut icon" href='<?php echo asset_url()."images/favicon.ico"; ?>' type="image/x-icon">
<link rel="icon" href='<?php echo asset_url()."images/favicon.ico"; ?>' type="image/x-icon">
</head>
<body>
<a href="<?php echo base_url()?>index.php/public/index"><img src="<?php echo asset_url()?>images/logo.png"><br><br></a>
<div class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          		  
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/index' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/index">Home</a></li>
            <?php if ($this->session->userdata('validated')) {?>
           		<li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/welcome' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/welcome">List Alumni</a></li>
            <?php } else { ?>
            	<li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/name/show' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/name/show">List Alumni</a></li>
            <?php } ?>
            <?php if ($this->session->userdata('validated')) {?>
				<li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/career' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/career">Job Postings</a></li>
            <?php } else { ?>
            	<li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/index/job' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/index/job">Job Postings</a></li>
            <?php } ?>
            <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/achieve' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/achieve">Achievements</a></li>
            <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/event' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/event">Events</a></li>
           
           <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">About <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/index/about_ait' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/index/about_ait">About AIT</a></li>
                <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/index/about_aa' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/index/about_aa">AIT ALUMNI ASSOCIATION</a></li>
                <li><a href="#">Something else here</a></li>
              </ul>
            </li>
            </ul>
          <ul class="nav navbar-nav navbar-right">
          		
           <?php if ($this->session->userdata('user_role') == 'admin') {?>
           		<li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/admin' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/admin">Admin Section</a></li>
            <?php } ?>
			     <li<?php if ( $_SERVER['REQUEST_URI'] == '/alumni/index.php/public/index/contact' ): ?> class="active"<?php endif; ?>><a href="<?php echo base_url()?>index.php/public/index/contact">Contact Us</a></li>
			<?php if ($this->session->userdata('validated')) {?>
				<li><a href="<?php echo base_url()?>index.php/profile/view">View Profile</a></li>
           		<li><a href="<?php echo base_url()?>index.php/login/logout"><b>Logout</b></a></li>
            <?php } else { ?>
            	<li><a href="<?php echo base_url()?>index.php/login"><b>Login</b></a></li>
            <?php } ?>
            
          </ul>
         
        </div><!--/.nav-collapse -->
      </div>
      <script src='<?php echo asset_url()."customjs/jquery-1.10.2.min.js"; ?>'></script>
      <script src='<?php echo asset_url()."customjs/bootstrap.min.js"; ?>'></script>
</body>
</html>